#include <iostream>
#include <fstream>

using namespace std;

class MyData
{
public:
    friend ifstream &operator>>(ifstream &input, const MyData &D)
    {
        input.read((char *)&D, sizeof(D));
        return input;
    }

public:
    double d1;
    double d2;
    double d3;
    double d4;
};

void test01()
{
    MyData s;
    ofstream outFile("students1.dat", ios::out | ios::binary);
    while (cin >> s.d1 >> s.d2 >> s.d3 >> s.d4)
        outFile.write((char *)&s, sizeof(s));
    outFile.close();
}

int main(int argc, char **argv)
{
    test01();
    return 0;
}